home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11857 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: laura.pcug.co.uk!altheim!broldham
  2. Newsgroups: comp.lang.c
  3. Message-ID: <1269@altheim.win-uk.net>
  4. References: <4inmv1$ljj@sunburst.ccs.yorku.ca> <4is9tf$8o3@spanky.pls.ov.com><m.b.greenwood-2503960745050001@mac007016.shef.ac.uk>
  5. Reply-To: broldham@altheim.win-uk.net (Brian R. Oldham)
  6. From: broldham@altheim.win-uk.net (Brian R. Oldham)
  7. Date: Tue, 26 Mar 1996 11:35:42 GMT
  8. Subject: Re: How to make it BEEP ?
  9.  
  10.  
  11. In article <m.b.greenwood-2503960745050001@mac007016.shef.ac.uk>, Mike Greenwood (m.b.greenwood@sheffield.ac.uk) writes:
  12. >In article <4is9tf$8o3@spanky.pls.ov.com>, glenn@ov.com wrote:
  13. >
  14. >> In article ljj@sunburst.ccs.yorku.ca, "Shahed A. Quazi"
  15. ><cs942112@ariel.cs.yorku.ca> writes:
  16. >> >Hi,
  17. >> >
  18. >> >I was wondering if anyone would be kind enough to tell me if there is a
  19. >> >C function on unix that I can use to make a beep sound. If it's not 
  20. >> >there,I would really appreciate if someone could give me the code.
  21. >> >
  22. >> >Actually, I'm writing a very simple program where I need it to beep if 
  23. >> >the user enters the input in wrong format.
  24. >> >
  25. >> >Thanks.
  26. >
  27. >Hi everyone,
  28. >
  29. >I'm sure the previous reply to this posting works also, but a simpler one is:-
  30. >
  31. >   /* sound the bell */
  32. >   printf("\a");
  33. >
  34. >where the 'a' means audiable bell. This works great on our Sun
  35. >Sparcstations, and I'm pretty sure that it's ANSI.
  36. >
  37. Yes, but doesn't printf() generate more overhead code than putchar()?
  38.  
  39. >Cheers
  40. >
  41. >Mike Greenwood
  42. >
  43.  
  44.  
  45. ---
  46. Brian Oldham
  47. Hucknall UK
  48. !...Gesundbrunnen
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.